//
//  EvaluateBottomView.m
//  CenturyCity
//
//  Created by beisheng03 on 2018/1/8.
//  Copyright © 2018年 beisheng. All rights reserved.
//

#import "EvaluateBottomView.h"

@interface EvaluateBottomView ()
@property (weak, nonatomic) IBOutlet UIButton *leftBtn;

@property (weak, nonatomic) IBOutlet UILabel *leftLabel;
@property (weak, nonatomic) IBOutlet UIButton *rightBtn;
@property (weak, nonatomic) IBOutlet UIView *topLineView;

@end

@implementation EvaluateBottomView

- (void)awakeFromNib{
    [super awakeFromNib];
    
    self.leftBtn.imageEdgeInsets = UIEdgeInsetsMake(10, 10, 10, 10);
    
    self.leftLabel.font = MYFONT(15);
    
    self.leftLabel.textColor = darkGray;
    
    self.rightBtn.titleLabel.font = MYFONT(16);

    self.topLineView.backgroundColor = lineGray;
    
    
}



- (IBAction)leftBtnDidTap:(UIButton *)sender {
    
    sender.selected = !sender.selected;
    
    if (sender.selected) {
        self.model.is_anonymous = @"1";
    } else {
        self.model.is_anonymous = @"0";

    }
}


- (IBAction)rightBtnDidTap:(UIButton *)sender {
    
    if ([self.delegate respondsToSelector:@selector(evaluateBtnDidClick)]) {
        [self.delegate evaluateBtnDidClick];
    }
}


/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
